unit tests for diff into .m file