test all query/location permutations and declare expected tests