Adding tests for queryEngine()