add test for the cache