MMS testing with localfunctions require R2013b or later versions of Matlab. Aslo return to previous working directory when writing cdf files are completed.