test: add serialization