Abuse SSL to test certain kinds of errors.
Merge pull request #265 from Lukasa/fix2

Abuse SSL to fix test coverage.