adding a unit test for cache manager