add test for marshalling