Test for criteria.