Fix caching in IO tests