Added test method for recursion testing