1) added testNewEpochAtBeginningOfSegment test case
2) added testFormatResetsCachedValues test case