updated test script for midi module