diff --git a/commands/core/test.drush.inc b/commands/core/test.drush.inc
index aa40fa8..1466890 100644
--- a/commands/core/test.drush.inc
+++ b/commands/core/test.drush.inc
@@ -53,11 +53,11 @@ function test_drush_command() {
  *  Array of test classes and groups.
  */
 function test_test_run_complete() {
-  if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_FULL) && module_exists('simpletest')) {
+  if (drush_bootstrap_max() == DRUSH_BOOTSTRAP_DRUPAL_FULL && module_exists('simpletest')) {
     // Retrieve all tests and groups.
     list($groups, $all_tests) = drush_test_get_all_tests();
+    return array('values' => array_keys($groups) + $all_tests);
   }
-  return array('values' => array_keys($groups) + $all_tests);
 }
 
 // Command callback
