Fixed tests for query request handler
Fixed tests for result