tests: add test for `binary::serialization`