Fixed tests for cache.