diff --git a/unittests/test_macros.py b/unittests/test_macros.py
index a6c81e0432a47b778ee43a968e9467b334435f16..98fdf6423182d665e61b08aba03ef5e3346928f2 100644
--- a/unittests/test_macros.py
+++ b/unittests/test_macros.py
@@ -272,11 +272,18 @@ metadata:
       params: {}
       definition: !macro
         test_two:
+    - !defmacro
+      name: test_four
+      params: {}
+      definition: !macro
+        test_four:
 ---
 extroot: !macro
   test_one:
 extroot2: !macro
   test_three:
+extroot3: !macro
+  test_four:
     """)
     # macros in macros can be used, but there are no circles; they stop at the first one.
     assert "test_one" not in cfood["extroot"]
@@ -284,3 +291,5 @@ extroot2: !macro
     assert "test_three" not in cfood["extroot2"]
     assert "test_one" not in cfood["extroot2"]
     assert cfood["extroot2"]["test_two"] is None
+    # No recursion
+    assert cfood["extroot3"]["test_four"] is None