Improve tests for PatchChanger.
Add test for NoteOn templates.
Add another MidiEventTest; fix error in MidiEvent logic.