perhaps improve the error message of expectMsgClass_internal to also include toString of the received?