Add marshal/unmarshal test for simple struct

Change-Id: I4906d702ebb48b41dbe121201cc4f165b5620c49