wrote a number of tests for functions starting with M, and fixed two errors in two function wrappers (forgot which).