test case for recursive call