test for nested validation for marhsal and serialize flows