Added tests for Handshake controller.