FLOE-206: Added a specific unit test for query

Added a specific unit test for accessing a query via the get method.