Updated SegmentTest