added test case for full connection handshake