io.sockets.secure.openssl: Check error code in unit test.