add handshake test case

unit test & function test passed, but it not worked