added json round-trip test