Added test for IsCorrectFormat function of the message classes. Fixed those same methods on them.