added handshaker tests
Merge pull request #3 from yzernik/handshaker_tests

added handshaker tests