Adding CacheManagerTest implementation

Made this a private method and moved it down.