Update unit tests for binary serialization