I added an isolation level against middlewares wrapping of __call__. Now they are automatically restored after each test case run.