Added ifelse unit tests.