Node and edge properties serialization and tests