Fix QueryCompilerTest