Add a simple test for CacheManager

Auditors: benjy