added MetadataSegmentManagerTest