more coding of matlab tests