Fix handshake serialization and add test
release new version