c1c894ddf009c9370630feb9d358189c89b00d65
diff --git a/tests/testaccel.c b/tests/testaccel.c
index 537ef07..8200110 100644
--- a/tests/testaccel.c
+++ b/tests/testaccel.c
@@ -46,7 +46,7 @@ accel_edited_callback (GtkCellRendererText *cell,
 static GtkWidget *
 key_test (void)
 {
-	GtkWidget *window, *sw, *tv;
+	GtkWidget *window, *sw, *tv, *button, *vbox;
 	GtkListStore *store;
 	GtkTreeViewColumn *column;
 	GtkCellRenderer *rend;
@@ -54,10 +54,18 @@ key_test (void)
 
 	/* create window */
 	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+        gtk_window_set_default_size (GTK_WINDOW (window), 300, 400);
 
+        g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
+
+        vbox = gtk_vbox_new (FALSE, 6);
+	gtk_container_add (GTK_CONTAINER (window), vbox);
+
+        button = gtk_check_button_new_with_mnemonic ("_Check this!");
+        gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
 
 	sw = gtk_scrolled_window_new (NULL, NULL);
-	gtk_container_add (GTK_CONTAINER (window), sw);
+        gtk_box_pack_end (GTK_BOX (vbox), sw, TRUE, TRUE, 0);
 
 	store = gtk_list_store_new (2, G_TYPE_INT, G_TYPE_UINT);
 	tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
