Fix broken tests caused by incorrect caching.