Cache bug

Try catch block to prevent exception being thrown when a cache items is removed during enumeration.

Added first test for cache tab.