Test that caches are purged on delete