added more general json roundtrip test