fix(config-loader): remove test hack in favor of mock in middleware test