diff --git a/src/trees/louds_tree.rs b/src/trees/louds_tree.rs
index 0d2936671c16429af5e53efd5430c18a3f82def2..ba7478cfd77215b9640154f325575d0a5354da05 100644
--- a/src/trees/louds_tree.rs
+++ b/src/trees/louds_tree.rs
@@ -516,6 +516,12 @@ mod tests {
             louds_tree.labeled_child(4, String::from("leaf")).unwrap(),
             7
         );
+        assert_eq!(
+            louds_tree
+                .labeled_child(4, String::from("foobar"))
+                .unwrap_err(),
+            NodeError::NoSuchChildError
+        );
     }
 
     #[test]