I improved how middlewares __call__ method is preserved. Now all integration tests work as a charm.