test: use assert regexp in tls no cert test
Replace the assert throws second argument from a contructor to a regexp matching the entire error message.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test tls