Add some unit tests for json+zlib serialization