add unit test for Conditions