tls_generic_test sanitisation.

I take it (this being a test) that you don't care about leaking these on failure.