Rule validation on message encoding

I check both ways. It is ensured that all required fields are present in the message but also that there aren't extraneous fields. Is it worth checking both? I added tests too.