improved stunnel test