Fix KeyCacheTest