Test return value and recursion