test query service