Generalized AbsSegment to BinarySegment.
Cleanup tests.