tests CHANGE rework yin parser element tests
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 3ccfa90..3cd4e6b 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -538,7 +538,7 @@
                                             {YANG_IF_FEATURE, &en->iffeatures, 0},
                                             {YANG_REFERENCE, &en->ref, YIN_SUBELEM_UNIQUE},
                                             {YANG_STATUS, &en->flags, YIN_SUBELEM_UNIQUE},
-                                            {(enum_kw == YANG_ENUM) ? YANG_VALUE : YANG_POSITION, &en->value, YIN_SUBELEM_UNIQUE},
+                                            {(enum_kw == YANG_ENUM) ? YANG_VALUE : YANG_POSITION, en, YIN_SUBELEM_UNIQUE},
                                             {YANG_CUSTOM, NULL, 0}
                                         };
     return yin_parse_content(ctx, subelems, 6, data, enum_kw, NULL, &en->exts);
@@ -1058,7 +1058,7 @@
                     break;
                 case YANG_IF_FEATURE:
                     ret = yin_parse_simple_elements(ctx, subelem_attrs, data, kw,
-                                                    (const char ***)subelem_info_rec->dest, YIN_ARG_VALUE, Y_STR_ARG, exts);
+                                                    (const char ***)subelem_info_rec->dest, YIN_ARG_NAME, Y_STR_ARG, exts);
                     break;
                 case YANG_IMPORT:
                     ret = yin_parse_import(ctx, subelem_attrs, data, (struct lysp_module *)subelem_info_rec->dest);
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 60a392b..f6aa3d3 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -137,7 +137,7 @@
 }
 
 void lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type);
-static void
+void
 lysp_type_free(struct ly_ctx *ctx, struct lysp_type *type)
 {
     FREE_STRING(ctx, type->name);