add test for cache