some changes to matlab test script