diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php
index adc35ba..cebfc9d 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php
@@ -285,6 +285,18 @@ function testDrupalRenderInvalidKeys() {
   }
 
   /**
+   * Test rendering top-level elements of a menu page callback.
+   */
+  function testTopLevel() {
+    $this->drupalGet('common-test/drupal-render-type');
+    $elements = $this->xpath('//div[contains(@class, :container-class) and contains(@class, :custom-class)]', array(
+      ':container-class' => 'form-wrapper',
+      ':custom-class' => 'drupal-render-type',
+    ));
+    $this->assertTrue(!empty($elements[0]), 'Top-level page callback render array element output found.');
+  }
+
+  /**
    * Tests that elements are rendered properly.
    */
   protected function assertRenderedElement(array $element, $xpath, array $xpath_args = array()) {
diff --git a/core/modules/system/tests/modules/common_test/common_test.module b/core/modules/system/tests/modules/common_test/common_test.module
index 0634e3b..4bc2bc8 100644
--- a/core/modules/system/tests/modules/common_test/common_test.module
+++ b/core/modules/system/tests/modules/common_test/common_test.module
@@ -52,6 +52,12 @@ function common_test_menu() {
     'access arguments' => array('access content'),
     'type' => MENU_CALLBACK,
   );
+  $items['common-test/drupal-render-type'] = array(
+    'title' => 'drupal_render() top-level #type',
+    'page callback' => 'common_test_drupal_render_type',
+    'access callback' => TRUE,
+    'type' => MENU_CALLBACK,
+  );
   $items['common-test/drupal-render-invalid-keys'] = array(
     'title' => 'Drupal Render',
     'page callback' => 'common_test_drupal_render_invalid_keys',
@@ -111,6 +117,19 @@ function common_test_destination() {
 }
 
 /**
+ * Returns a render array using a custom #type and properties on the top-level.
+ */
+function common_test_drupal_render_type() {
+  $build = array(
+    '#type' => 'container',
+    '#attributes' => array(
+      'class' => array('drupal-render-type'),
+    ),
+  );
+  return $build;
+}
+
+/**
  * Renders an element with an invalid render array key.
  */
 function common_test_drupal_render_invalid_keys() {
