fixed scheduler test using sys.argv