added handshaker tests