Improved tlsIO testing