diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
index fa443f6..a152bfa 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
@@ -210,6 +210,16 @@ public function testReadWrite() {
     $this->assertEqual(count(iterator_to_array($entity->name->getIterator())), count($entity->name), 'Count matches iterator count.');
     $this->assertTrue($entity->name->getValue() === array(0 => NULL), 'Name field value contains a NULL value.');
 
+    // Test removing all list items by assigning an empty array.
+    $entity->name = array();
+    $this->assertIdentical(count($entity->name), 0, 'Name field contains no items.');
+    $this->assertIdentical($entity->name->getValue(), array(), 'Name field value is an empty array.');
+
+    // Test removing all list items by setting it to NULL.
+    $entity->name = NULL;
+    $this->assertIdentical(count($entity->name), 0, 'Name field contains no items.');
+    $this->assertIdentical($entity->name->getValue(), array(), 'Name field value is an empty array.');
+
     // Test get and set field values.
     $entity->name = 'foo';
     $this->assertEqual($entity->name[0]->getPropertyValues(), array('value' => 'foo'), 'Field value has been retrieved via getPropertyValue()');
@@ -230,6 +240,15 @@ public function testReadWrite() {
     ));
     $this->assertNotNull($entity->user_id->value, 'User id is not NULL');
     $this->assertIdentical($entity->user_id->value, 0, 'User id has been set to 0');
+
+    // Test setting the ID with the value only.
+    $entity = entity_create('entity_test', array(
+      'name' => $name_item,
+      'user_id' => 0,
+      'field_test_text' => $text_item,
+    ));
+    $this->assertNotNull($entity->user_id->value, 'User id is not NULL');
+    $this->assertIdentical($entity->user_id->value, 0, 'User id has been set to 0');
   }
 
   /**
diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
index 9c38fda..e0b25fb 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
@@ -171,15 +171,6 @@ function testEntityLanguageMethods() {
     $entity->getTranslation($this->langcodes[1], FALSE)->set($field_name, array(0 => array('value' => 'default value2')));
     // Get the value.
     $this->assertEqual($entity->get($field_name)->value, 'default value2', 'Untranslated value set into a translation in non-strict mode.');
-
-    // Test setting the user_id to 0 using setValue method.
-    $entity = entity_create('entity_test', array(
-      'name' => 'test',
-      'user_id' => $GLOBALS['user']->uid,
-    ));
-    $translation = $entity->getTranslation($this->langcodes[1], FALSE);
-    $translation->user_id->setValue(0);
-    $this->assertIdentical($entity->get('user_id')->value, 0);
   }
 
   /**
