Completely rework TLS tests

The TLS tests should now cover what was tested using a shell-script
before.