Middleware and ConfigurationTest for default values