fix test query