corrected expectMsgPF