diff --git a/recaptcha.test b/recaptcha.test
index 4afedf7..0d35de6 100644
--- a/recaptcha.test
+++ b/recaptcha.test
@@ -127,13 +127,17 @@ class ReCaptchaBasicTest extends DrupalWebTestCase {
// Check if there is a reCAPTCHA on the login form.
$this->drupalGet('user');
- $this->assertRaw($grecaptcha, '[testReCaptchaOnLoginForm]: reCAPTCHA is shown on form.');
- $this->assertRaw('', '[testReCaptchaOnLoginForm]: reCAPTCHA is shown on form.');
+ $captcha_sid = $this->getCaptchaSid();
+ $grecaptcha = '
';
+ $this->assertRaw($grecaptcha, '[testReCaptchaOnLoginForm]: reCAPTCHA is shown on form.' . $grecaptcha);
+ $this->assertRaw('', '[testReCaptchaOnLoginForm]: reCAPTCHA API script is present.');
$this->assertNoRaw($grecaptcha . '