Added test case for recursive methods.