add test_rm
replace arrays with hash in FwySegment