test function api in that way...