Test clearing caches