tests for criteria