Added the beginning of support for verifying the handshake.

This is still a failing test.