add expect_ok (M_ok master message) function