Testing framework for query language