add test for cache operations