adding tests for CacheListener