Improved CacheManager. Fixed tests for CacheManager. Added tests for CacheResolverEvent.