Test for match criteria