MDL-38165 cache: added unit tests for event purging of persistent caches
MDL-38165 cache: fixed issues purging peristent caches by event