Add tests for env and config_file.