Added tests on segment intersections.