Adding tests for ProxyMiddleware