message structure and packing tests