Added looping to MidiTest