fix mtest & regression
fix for mtest/measure
try to make travis happy
make SegmentType an global enum class
update mtest