Fix offset error in the unit test for SegmentDirectory