Add a test for SSL_pending()