add marshalling tests