         let l = LineSegment(p0: BKPoint(x:1.0, y: 2.0), p1: BKPoint(x: 4.0, y: 2.0))
         let i = l.intersects(curve: c)
         XCTAssertEqual(i.count, 1)
-        XCTAssert(intersections(i, betweenCurve: l, andOtherCurve: c, areWithinTolerance: epsilon))
+        XCTAssert(BezierKitTests.intersections(i, betweenCurve: l, andOtherCurve: c, areWithinTolerance: epsilon))
     }
 
     

        let l = LineSegment(p0: BKPoint(x:1.0, y: 1.1), p1: BKPoint(x: 3.0, y: 1.1))
        let i = l.intersects(curve: c)
        XCTAssertEqual(i.count, 2)
        XCTAssert(intersections(i, betweenCurve: l, andOtherCurve: c, areWithinTolerance: epsilon))
    }
    
    func testIntersectsDegenerateCubic2() {

        XCTAssertEqualWithAccuracy(i2[2].t1, 0.75, accuracy: epsilon)
        XCTAssertEqualWithAccuracy(i2[2].t2, 0.0, accuracy: epsilon)
    }
        
    func testIntersectsDegenerateCubic1() {
        // a special case where the cubic is degenerate (it can actually be described as a quadratic)
        let epsilon: BKFloat = 0.00001
