Added more tests to recursion version