Added CmpCond() unit tests