making sure locale is properly reset in tests