unset_env is correctly implemented