fully rely on modify_env to restore original environment for tests