quering tests