     }
 
     func testClearMetaEvent_clearsOnlyMetaEvents() {
-        addSysexMetaEventAndNotes()
+        addSysExMetaEventAndNotes()
 
         XCTAssertEqual(musicTrack.metaEventCount, 5)
-        XCTAssertEqual(musicTrack.sysexEventCount, 4)
+        XCTAssertEqual(musicTrack.sysExEventCount, 4)
         XCTAssertEqual(musicTrack.noteCount, 4)
 
         musicTrack.clearMetaEvents()
 
         XCTAssertEqual(musicTrack.metaEventCount, 0)
-        XCTAssertEqual(musicTrack.sysexEventCount, 4)
+        XCTAssertEqual(musicTrack.sysExEventCount, 4)
         XCTAssertEqual(musicTrack.noteCount, 4)
     }
 
-    // MARK: - clearSysexEvents
-    func testClearSysexEvents_clearsAllSysexEvents() {
-        for i in 0 ..< 4 {
-            musicTrack.addSysex([0], position: AKDuration(beats: Double(i)))
-        }
-
-        XCTAssertEqual(musicTrack.sysexEventCount, 4)
-
-        musicTrack.clearSysexEvents()
-
-        XCTAssertEqual(musicTrack.sysexEventCount, 0)
-    }
-
-    func testClearSysexEvents_clearsOnlySysexEvents() {
-        addSysexMetaEventAndNotes()
+    // MARK: - clearSysExEvents
+    func testClearSysExEvents_clearsAllSysExEvents() {
+        for i in 0 ..< 4 {
+            musicTrack.addSysEx([0], position: AKDuration(beats: Double(i)))
+        }
+
+        XCTAssertEqual(musicTrack.sysExEventCount, 4)
+
+        musicTrack.clearSysExEvents()
+
+        XCTAssertEqual(musicTrack.sysExEventCount, 0)
+    }
+
+    func testClearSysExEvents_clearsOnlySysExEvents() {
+        addSysExMetaEventAndNotes()
 
         XCTAssertEqual(musicTrack.metaEventCount, 5)
-        XCTAssertEqual(musicTrack.sysexEventCount, 4)
-
-        musicTrack.clearSysexEvents()
+        XCTAssertEqual(musicTrack.sysExEventCount, 4)
+
+        musicTrack.clearSysExEvents()
 
         XCTAssertEqual(musicTrack.metaEventCount, 5)
-        XCTAssertEqual(musicTrack.sysexEventCount, 0)
+        XCTAssertEqual(musicTrack.sysExEventCount, 0)
         XCTAssertEqual(musicTrack.noteCount, 4)
     }
 
     // MARK: - clear()
-    func testClear_shouldRemoveNotesMetaAndSysex() {
-        addSysexMetaEventAndNotes()
+    func testClear_shouldRemoveNotesMetaAndSysEx() {
+        addSysExMetaEventAndNotes()
 
         XCTAssertEqual(musicTrack.metaEventCount, 5)
-        XCTAssertEqual(musicTrack.sysexEventCount, 4)
+        XCTAssertEqual(musicTrack.sysExEventCount, 4)
         XCTAssertEqual(musicTrack.noteCount, 4)
 
         musicTrack.clear()
 
         XCTAssertEqual(musicTrack.metaEventCount, 0)
-        XCTAssertEqual(musicTrack.sysexEventCount, 0)
+        XCTAssertEqual(musicTrack.sysExEventCount, 0)
         XCTAssertEqual(musicTrack.noteCount, 0)
     }
 

        return count
    }

    var sysexEventCount: Int {
        var count = 0

        iterateThroughEvents { _, eventType, _ in

    }

    // MARK: - helper functions for reuse
    fileprivate func addSysExMetaEventAndNotes() {
        let internalTrack = musicTrack.internalMusicTrack!

        var metaEvent = MIDIMetaEvent(metaEventType: 58,
