Added unit tests for the "cond" function.