Tests for match criteria.