add test stuff for marshalling function

add first stuff into marshalling function