Added linesegment distance tests