fix peer timeout checker
add handshake test
0.4.1