add query verification tests