add tests for handshake and upgrade