check_run_stage_args function

Test the arguments to the run_stage function for correctness