Added a unittest on the debug representation of segments.
Finished code coverage unittests. Back to 100% coverage.