diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module
index 5d65276..1bf56d5 100644
--- a/modules/simpletest/tests/form_test.module
+++ b/modules/simpletest/tests/form_test.module
@@ -1617,6 +1617,7 @@ function form_test_clicked_button($form, &$form_state) {
       // Image buttons need a #src; the others need a #value.
       if ($type == 'image_button') {
         $form[$name]['#src'] = 'misc/druplicon.png';
+        $form[$name]['#value'] = $name;
       }
       else {
         $form[$name]['#value'] = $name;
