Test implementation of intersecting line segments