testing CacheManager flow