fix caching tests