Unittest for Kevin's fix to Segment.resetTarget() (964ab1b113)