diff --git a/core/modules/rest/src/Tests/DeleteTest.php b/core/modules/rest/src/Tests/DeleteTest.php
index 5bc69bb..7bbd247 100644
--- a/core/modules/rest/src/Tests/DeleteTest.php
+++ b/core/modules/rest/src/Tests/DeleteTest.php
@@ -8,6 +8,7 @@
 namespace Drupal\rest\Tests;
 
 use Drupal\Core\Url;
+use GuzzleHttp\Client;
 
 /**
  * Tests the deletion of resources.
@@ -40,6 +41,24 @@ public function testDelete() {
       $account = $this->drupalCreateUser($permissions);
       $this->drupalLogin($account);
 
+      $form = \Drupal::formBuilder()->getForm('Drupal\user\Form\UserLoginForm');
+      //dpm($form);
+      $postfields = array(
+        'name' => $account->name,
+        'pass' => $account->pass_raw,
+        'form_build_id' => $form['form_build_id']['#value'],
+        'form_id' => 'user_login_form',
+        'op' => 'Log in',
+      );
+
+      //$client = drupal_container()->get('http_default_client');
+      $url = Url::fromRoute('<front>')->setAbsolute()->toString();
+      $client = new Client([
+        'base_uri' => $url
+      ]);
+
+      $response = $client->request('POST', 'user', $postfields);
+
       // Create an entity programmatically.
       $entity = $this->entityCreate($entity_type);
       $entity->save();
