Add test for failed handshake