test the match-all query