Add memory cache testing for clear and set