diff --git a/example/gramps/child-father-child-loop.gramps b/example/gramps/child-father-child-loop.gramps
new file mode 100644
index 000000000..b2e7a69b9
--- /dev/null
+++ b/example/gramps/child-father-child-loop.gramps
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+ M
+
+ Child
+ Child
+
+
+
+
+
+ M
+
+ Father
+ Father
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/gramps/test_complex_loop.gramps b/example/gramps/test_complex_loop.gramps
new file mode 100644
index 000000000..d733b88ad
--- /dev/null
+++ b/example/gramps/test_complex_loop.gramps
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+ M
+
+ Child
+ Child
+
+
+
+
+
+
+ M
+
+ Father
+ Father
+
+
+
+
+
+ M
+
+ Child2
+ Father
+
+
+
+
+
+ M
+
+ Child3
+ Father
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+