I correctly added the logic for isolating middlewares wrapping. In addition I refactored itest_fantastico_app so that it does not affect any other tests.