unit test for data marshal