diff --git a/Generator/Tests.php b/Generator/Tests.php
index <HASH>..<HASH> 100644
--- a/Generator/Tests.php
+++ b/Generator/Tests.php
@@ -35,7 +35,7 @@ class Tests extends PHPFile {
     $test_file_name = $module_root_name . "Test.php";
 
     // The key is arbitrary (at least so far!).
-    $files['module.test'] = array(
+    $files['%module.test'] = array(
       'path' => 'src/Tests',
       'filename' => $test_file_name,
       'body' => $this->file_contents(),
diff --git a/Generator/Tests7.php b/Generator/Tests7.php
index <HASH>..<HASH> 100644
--- a/Generator/Tests7.php
+++ b/Generator/Tests7.php
@@ -21,8 +21,8 @@ class Tests7 extends Tests {
     $module_root_name = $this->base_component->component_data['root_name'];
 
     // Change the file location for D7.
-    $files['module.test']['path'] = 'tests';
-    $files['module.test']['filename'] = "$module_root_name.test";
+    $files['%module.test']['path'] = 'tests';
+    $files['%module.test']['filename'] = "%module.test";
 
     return $files;
   }
Changed key in file info array for Tests component to follow de facto pattern.