Add test for removing from cache.