Fix MutableMultimapQuery#hasPair; check in partial query tests