Add a recursive function test for scopeif