Add tests for MemoryCache and FileCache