Testing CacheMiddleware on Python 3