tests passing for query processor