fixed the warnings for the havePair matcher