Fixed logging for caches. Refactored RepositoryCache to use AbstractCache.
Tuning the test.