split out json serialization tests