Add tests of dependency injection for config processing.