tests free module properly
diff --git a/tests/src/test_parser_yin.c b/tests/src/test_parser_yin.c
index 628501b..8e14839 100644
--- a/tests/src/test_parser_yin.c
+++ b/tests/src/test_parser_yin.c
@@ -50,10 +50,10 @@
                 &mod);
 
     assert_string_equal(mod->name, "example-foo");
+    assert_string_equal(mod->prefix, "foo");
 
+    lysp_module_free(mod);
     ly_ctx_destroy(ctx, NULL);
-
-    free(mod);
 }
 
 static int