[bugfix] Complete function testcase_run_main_args