Implemented unit test for criteria module