Add M code generation a first test.