added test for lru cache purge and fix for lru removal