changes so that the addWhile test passes
added tests for ifElse and fixed a related bug