Fixes

- Make is_handshake static method
- remove unreference to exception
add is_handshake test