Using constructor injection and mocks to test class Query