diff --git a/modernizr.admin.inc b/modernizr.admin.inc
index 6970b0e..617a5a6 100644
--- a/modernizr.admin.inc
+++ b/modernizr.admin.inc
@@ -31,7 +31,7 @@ function modernizr_generate_url() {
   // Check to see if there are any registered tests.
   if(!empty($tests)) {
     // Loop through each registered test.
-    foreach ($tests as $test) {
+    foreach ($tests as $key => $test) {
       $module = $test['module'];
 
       // Check to see if this test's module has been set. If not, set it.
@@ -54,7 +54,7 @@ function modernizr_generate_url() {
       // Create a definition pair for this test.
       $elements['tests']['list'][$module]['tests'][] = array(
         'label' => array(
-          '#markup' => $test['test'],
+          '#markup' => $key,
           '#prefix' => '<dt>',
           '#suffix' => '</dt>',
         ),
@@ -66,7 +66,7 @@ function modernizr_generate_url() {
       );
 
       // @todo Check to see if this test has already been added by another module.
-      $link .= $test['test'] . '-';
+      $link .= $key . '-';
     }
 
     // Wrap the modules.
