Add test script for matlab