added test around loading configuration from environment or config file.