Refactoring of MIDI import tests