Add session testing to session_test.
I have added a PrivateKeyPassphraseHandler and a InvalidCertificateHandler. We should probably add test cases for these methods. For the first one we would need to create a private key with a passphrase and then try and connect. For the second we would need to somehow generate a certificate verification error.