unit testing JsonSerialization