Add the save_test_env and reset_test_env procedure to record original test environment (global and environment variables) and restore it once a test set has been done.