added test for cache service.