fixed bug, now recursion test works