little test to convert struct into bytes