Add multiply-nested function test