add tests for MemoryCache