MUS-86: ExportMidi guitests, Refactoring