fixed crashing error in Test.m