test script for midi module