Fix tests according to rfc 3156.

Also fix test suite loading.
Implement TLS wrapper mode.
Merge remote-tracking branch 'drebs/feature/3637_use-tls-wrapper-mode' into develop