tests: fix TLS handshake failure with TLS 1.3