Updated test function in MidiModule. Now uses usleep to simulate time
between msg sends.