basic support for query testing