tests for remote_env