diff --git a/core/modules/image/src/Tests/ImageFieldWidgetTest.php b/core/modules/image/src/Tests/ImageFieldWidgetTest.php
index 8bc70bc..a1490cf 100644
--- a/core/modules/image/src/Tests/ImageFieldWidgetTest.php
+++ b/core/modules/image/src/Tests/ImageFieldWidgetTest.php
@@ -6,6 +6,8 @@
  */
 
 namespace Drupal\image\Tests;
+use Drupal\Core\Field\FieldStorageDefinitionInterface;
+use Drupal\node\Entity\Node;
 
 /**
  * Tests the image field widget.
@@ -18,8 +20,8 @@ class ImageFieldWidgetTest extends ImageFieldTestBase {
    * Tests file widget element.
    */
   public function testWidgetElement() {
-     // Check for image widget in add/node/article page
-    $field_name = strtolower($this->randomMachineName());
+    // Check for image widget in add/node/article page
+    $field_name = 'image';
     $min_resolution = 50;
     $max_resolution = 100;
     $field_settings = array(
@@ -27,9 +29,28 @@ public function testWidgetElement() {
       'min_resolution' => $min_resolution . 'x' . $min_resolution,
       'alt_field' => 0,
     );
-    $this->createImageField($field_name, 'article', array(), $field_settings);
+    $this->createImageField($field_name, 'article', array('cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED), $field_settings);
     $this->drupalGet('node/add/article');
     $this->assertNotEqual(0, count($this->xpath('//div[contains(@class, "field--widget-image-image")]')), 'Image field widget found on add/node page', 'Browser');
+
+    $test_image_1 = $this->drupalGetTestFiles('image')[5];
+    $test_image_2 = $this->drupalGetTestFiles('image')[7];
+    $edit = array(
+      'files[image_0][]' => array(drupal_realpath($test_image_1->uri), drupal_realpath($test_image_2->uri))
+    );
+    $this->drupalPostAjaxForm(NULL, $edit, 'image_0_upload_button');
+    $this->drupalPostForm(NULL, array('title[0][value]' => 'Image upload'), 'Save and publish');
+    $node = Node::load(1);
+    foreach ($node->image as $delta => $image) {
+      if ($delta == 0) {
+        $this->assertEqual($image->width, 80, 'Stored width of first image is 80 px');
+        $this->assertEqual($image->height, 60, 'Stored height of first image is 60px');
+      }
+      else {
+        $this->assertEqual($image->width, 360, 'Stored width of second image is 360px');
+        $this->assertEqual($image->height, 240, 'Stored height of second image is 240px');
+      }
+    }
   }
 
 }
