Tests for linesegments