testcase: reorder functions