test caching improvements