Fix TimeForwarder and unit tests for MemoryCache