add a test for make_allfunc