Added test for recursive function application