final tests for queryController