Check QueryCapability for unit test