improve os.environ test clean-up by popping value

fixes issue 197