[tests] terminal should only be set once. Otherwise, when running all tests, the terminal is set multiple times, the original settings are lost, and the exit handler is useless
Merge pull request #69 from ebirger/fix_term_exit_on_test

Terminal cleanup on running multiple tests