Json serialization/deserialization tests