Made tests for HandshakeProtocol, no tests for android client yet because too difficult at this point