Modified test to use Environment configuration.