fix bug in toChildG
start unit testing mapped segment