Add test for recursive functions