distancePointSegment tests.