Tests for the `queryInstances` function in the Command Line API.