Fixed unit test (added mock to getQueryService).
Fixed unit test