diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c
index 18b2b42..9e7b233 100644
--- a/tests/testheaderbar.c
+++ b/tests/testheaderbar.c
@@ -21,6 +21,25 @@ static const gchar css[] =
  "}";
 
 static void
+on_bookmark_clicked (GtkButton *button, gpointer data)
+{
+  GtkWindow *window = GTK_WINDOW (data);
+  GtkWidget *chooser;
+
+  chooser = gtk_file_chooser_dialog_new ("File Chooser Test",
+                                         window,
+                                         GTK_FILE_CHOOSER_ACTION_OPEN,
+                                         GTK_STOCK_CLOSE,
+                                         GTK_RESPONSE_CLOSE,
+                                         NULL);
+
+  g_signal_connect (chooser, "response",
+                    G_CALLBACK (gtk_widget_destroy), NULL);
+
+  gtk_widget_show (chooser);
+}
+
+static void
 change_title (GtkButton *button, gpointer data)
 {
   GtkWidget *headerbar = GTK_WIDGET (data);
@@ -103,6 +122,7 @@ main (int argc, char *argv[])
 
   button = gtk_button_new ();
   image = gtk_image_new_from_icon_name ("bookmark-new-symbolic", GTK_ICON_SIZE_BUTTON);
+  g_signal_connect (button, "clicked", G_CALLBACK (on_bookmark_clicked), window);
   gtk_container_add (GTK_CONTAINER (button), image);
 
   gtk_header_bar_pack_start (GTK_HEADER_BAR (header), button);
