adds the s command (step) test 7 and adds global in the functions