Fixed tests for query request