assign_func test