Add unit test for Condition.