rewrote serialisation tests to use the Protocol, less coupled