This should be done in a test cleanup instead. To make it really good: save old value in class initialize and restore in test cleanup.