diff --git a/testsuite/gtk/Makefile.am b/testsuite/gtk/Makefile.am
index 728c37946e..8628654c43 100644
--- a/testsuite/gtk/Makefile.am
+++ b/testsuite/gtk/Makefile.am
@@ -163,14 +163,13 @@ test_icontheme = \
$(NULL)
test_ui = \
- ui/test1.ui \
- ui/test1.expected \
- ui/test2.ui \
- ui/test2.expected \
- ui/test3.ui \
- ui/test3.expected \
- ui/test4.ui \
- ui/test4.expected \
+ ui/test1.ui ui/test1.expected \
+ ui/test2.ui ui/test2.expected \
+ ui/test3.ui ui/test3.expected \
+ ui/test4.ui ui/test4.expected \
+ ui/test5.ui ui/test5.expected \
+ ui/test6.ui ui/test6.expected \
+ ui/test7.ui ui/test7.expected \
$(NULL)
EXTRA_DIST += \
diff --git a/testsuite/gtk/ui/test5.expected b/testsuite/gtk/ui/test5.expected
new file mode 100644
index 0000000000..ff43ca4091
--- /dev/null
+++ b/testsuite/gtk/ui/test5.expected
@@ -0,0 +1 @@
+SUCCESS
diff --git a/testsuite/gtk/ui/test5.ui b/testsuite/gtk/ui/test5.ui
new file mode 100644
index 0000000000..8d3c723783
--- /dev/null
+++ b/testsuite/gtk/ui/test5.ui
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/testsuite/gtk/ui/test6.expected b/testsuite/gtk/ui/test6.expected
new file mode 100644
index 0000000000..2acd0d0fd4
--- /dev/null
+++ b/testsuite/gtk/ui/test6.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 8
+Duplicate object ID 'foo' on line 5 (previously on line 3)
diff --git a/testsuite/gtk/ui/test6.ui b/testsuite/gtk/ui/test6.ui
new file mode 100644
index 0000000000..71d37e723b
--- /dev/null
+++ b/testsuite/gtk/ui/test6.ui
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/testsuite/gtk/ui/test7.expected b/testsuite/gtk/ui/test7.expected
new file mode 100644
index 0000000000..df08169b7e
--- /dev/null
+++ b/testsuite/gtk/ui/test7.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 4
+:4:1 'object' is not a valid tag here
diff --git a/testsuite/gtk/ui/test7.ui b/testsuite/gtk/ui/test7.ui
new file mode 100644
index 0000000000..553e3d6599
--- /dev/null
+++ b/testsuite/gtk/ui/test7.ui
@@ -0,0 +1,6 @@
+
+
+