Fix mmult and add test automation script
Automated test script and negative test