Test case to check recursion