diff --git a/core/modules/entity/lib/Drupal/entity/Tests/EntityCrudHookTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityCrudHookTest.php
index 5f7f577..054292b 100644
--- a/core/modules/entity/lib/Drupal/entity/Tests/EntityCrudHookTest.php
+++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityCrudHookTest.php
@@ -69,6 +69,12 @@ class EntityCrudHookTest extends WebTestBase {
    * Tests hook invocations for CRUD operations on comments.
    */
   public function testCommentHooks() {
+    // Create and save node type.
+    $node_type = array(
+      'type' => 'article',
+    );
+    node_type_save(node_type_set_defaults($node_type));
+
     $node = entity_create('node', array(
       'uid' => 1,
       'type' => 'article',
@@ -196,6 +202,12 @@ class EntityCrudHookTest extends WebTestBase {
    * Tests hook invocations for CRUD operations on nodes.
    */
   public function testNodeHooks() {
+    // Create and save node type.
+    $node_type = array(
+      'type' => 'article',
+    );
+    node_type_save(node_type_set_defaults($node_type));
+
     $node = entity_create('node', array(
       'uid' => 1,
       'type' => 'article',
diff --git a/core/modules/node/lib/Drupal/node/NodeStorageController.php b/core/modules/node/lib/Drupal/node/NodeStorageController.php
index 0fa7b33..511f48a 100644
--- a/core/modules/node/lib/Drupal/node/NodeStorageController.php
+++ b/core/modules/node/lib/Drupal/node/NodeStorageController.php
@@ -11,6 +11,7 @@ use Drupal\entity\DatabaseStorageController;
 use Drupal\entity\EntityInterface;
 use Drupal\entity\EntityStorageException;
 use Exception;
+use Drupal\entity\EntityMalformedException;
 
 /**
  * Controller class for nodes.
@@ -257,6 +258,12 @@ class NodeStorageController extends DatabaseStorageController {
         $node->revision_uid = $GLOBALS['user']->uid;
       }
     }
+
+    // Checks if node type (budle) exists.
+    $entity_info = entity_get_info('node');
+    if (!isset($entity_info['bundles'][$node->type])) {
+      throw new EntityMalformedException('The node type doesn\'t exists.');
+    }
   }
 
   /**
diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
index bb2aef8..3ddb5c9 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
@@ -179,6 +179,12 @@ abstract class WebTestBase extends TestBase {
    *   Created node entity.
    */
   protected function drupalCreateNode($settings = array()) {
+    // Create and save node type.
+    $node_type = array(
+      'type' => 'page',
+    );
+    node_type_save(node_type_set_defaults($node_type));
+
     // Populate defaults array.
     $settings += array(
       'body'      => array(LANGUAGE_NOT_SPECIFIED => array(array())),
