Streamline PathItem_Contains tests.