diff --git a/tests/behat/composer.json b/tests/behat/composer.json
index 5bf9093..ac51c0f 100644
--- a/tests/behat/composer.json
+++ b/tests/behat/composer.json
@@ -1,6 +1,6 @@
 {
   "require": {
-    "drupal/drupal-extension": "*",
+    "drupal/drupal-extension": "1.0.0",
 
     "symfony/css-selector": "2.4.2",
     "symfony/finder": "2.4.2",
diff --git a/tests/behat/features/bootstrap/FeatureContext.php b/tests/behat/features/bootstrap/FeatureContext.php
index a6508d0..63435b6 100644
--- a/tests/behat/features/bootstrap/FeatureContext.php
+++ b/tests/behat/features/bootstrap/FeatureContext.php
@@ -270,9 +270,10 @@ class FeatureContext extends DrupalContext
       if ($end === FALSE) {
         break;
       }
+      $random_generator = new Random;
       $name = substr($argument, $start + 1, $end - $start - 1);
       if ($name == 'random') {
-        $this->vars[$name] = Random::name(8);
+        $this->vars[$name] = $random_generator->name(8);
         $random[] = $this->vars[$name];
       }
       // In order to test previous random values stored in the form,
@@ -304,10 +305,12 @@ class FeatureContext extends DrupalContext
       $this->logOut();
     }
 
+    $random = new Random;
+
     // Create user (and project)
     $user = (object) array(
-      'name' => Random::name(8),
-      'pass' => Random::name(16),
+      'name' => $random->name(8),
+      'pass' => $random->name(16),
       'role' => 'authenticated user',
     );
     $user->mail = "{$user->name}@example.com";
