test for MemoryCache