Added groupWithMultipleM test