added tests for queryexecutor