test code in MidiCodePlugin