unit test for criteria initialization