Undo enviornment changes in test