Added tests for m struct
Added tests for m struct