diff --git a/configure.in b/configure.in
index d55290a..b053c74 100644
--- a/configure.in
+++ b/configure.in
@@ -514,6 +514,8 @@ fi
 AC_SUBST(EXTRA_LIBS)
 AC_SUBST(EXTRA_INCLUDES)
 
+PKG_CHECK_MODULES(CUTTER, cutter) 
+
 dnl ******************
 dnl * Config defaults
 dnl ******************
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f76edda..73e2fcc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,24 @@
-check_PROGRAMS = pie-demo 
+check_PROGRAMS = pie-demo	\
+	test-regex-with-gtester
 
 include $(top_srcdir)/goffice.mk
 
 AM_CFLAGS = $(GOFFICE_CFLAGS)
 pie_demo_LDADD = $(GOFFICE_PLUGIN_LIBADD)
 pie_demo_SOURCES = pie-demo.c
+
+INCLUDES = $(CUTTER_CFLAGS)
+
+noinst_LTLIBRARIES = 			\
+	test_regex_with_cutter.la
+
+test_regex_with_cutter_la_SOURCES = test-regex-with-cutter.c
+test_regex_with_cutter_la_LIBADD = $(top_builddir)/goffice/libgoffice-@GOFFICE_API_VER@.la
+test_regex_with_cutter_la_LDFLAGS =			\
+				-rpath $(libdir)	\
+				-module			\
+				-avoid-version
+
+test_regex_with_gtester_LDADD = $(top_builddir)/goffice/libgoffice-@GOFFICE_API_VER@.la
+test_regex_with_gtester_SOURCES = test-regex-with-gtester.c
+
