Used TimeSource indirection to make class MemoryHistory unit test friendly