added test for handshake