fix recursive func test