Test AuthenticatedMessage
Extract out basic serialization tests