modify test which raises SystemExit