Testing for multiple query types