make SegmentType an global enum class
update mtest