Added restore_env to tests to test MT_NO_SKIP_MSG. Other test improvements
[git-p4: depot-paths = "//src/minitest/dev/": change = 8921]