Refactored CacheExtensionTest