added test case MemoizingEventCalculatorTest