Add test for CacheService and fixing a configuration bug.