         }
 
         // One second at 120bpm is two beats
-        XCTAssertEqual(AKSequencerEngineGetPosition(engine), 2.0)
+        XCTAssertEqual(AKSequencerEngineGetPosition(engine), fmod(2.0 * Double(Int(frameCount) * renderCallCount) / 44100, 4), accuracy: 0.0001)
 
         AKSequencerEngineDestroy(engine)
 

        XCTAssertEqual(events.map { $0.offset }, [0, 0, 0, 22050, 22050, 22050])
    }

    func testOverlap() {

        var seq = AKSequence()

        let settings = AKSequenceSettings(maximumPlayCount: 1,
                                          length: 4,
                                          tempo: 120,
                                          loopEnabled: true,
                                          numberOfLoops: 0)

        var events = [AKMIDIEvent]()
