added recursion and iteration tests