test for caching