updated testM.m on the testbranch branch