test case using recursion objects