Added JSON serializtion test.