fixes for matlab test scripts