added test for m2