diff --git a/test/test_yang_with_defaults.sh b/test/test_yang_with_defaults.sh
index 5ba4ac74..5f0e8c5f 100755
--- a/test/test_yang_with_defaults.sh
+++ b/test/test_yang_with_defaults.sh
@@ -269,7 +269,7 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" \
"\
report-all-tagged" \
"" \
-"\
+"\
eth08192ok\
eth11500ok\
eth29000not feeling so good\
@@ -479,7 +479,7 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" \
report-all-tagged\
" \
"" \
-"\
+"\
eth08192\
eth11500\
eth29000\
@@ -487,7 +487,6 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" \
edvdv\
"
-
new "rfc8040 4.3. RESTCONF GET json"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+json' $RCPROTO://localhost/restconf/data/example:interfaces)" \
0 \
@@ -520,13 +519,15 @@ expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPR
"Cache-Control: no-cache" \
'eth11500ok'
-new "rfc8040 B.3.9. RESTONF with-defaults parameter = explicit "
+new "rfc8040 B.3.9. RESTONF with-defaults parameter = explicit json"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+json' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth1?with-defaults=explicit)" \
0 \
"HTTP/$HVER 200" \
"Content-Type: application/yang-data+json" \
"Cache-Control: no-cache" \
'{"example:interface":\[{"name":"eth1","status":"ok"}\]}'
+
+new "rfc8040 B.3.9. RESTONF with-defaults parameter = explicit xml"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth1?with-defaults=explicit)" \
0 \
"HTTP/$HVER 200" \
@@ -534,13 +535,15 @@ expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPR
"Cache-Control: no-cache" \
'eth1ok'
-new "rfc8040 B.3.9. RESTONF with-defaults parameter = trim"
+new "rfc8040 B.3.9. RESTONF with-defaults parameter = trim json"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+json' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth3?with-defaults=trim)" \
0 \
"HTTP/$HVER 200" \
"Content-Type: application/yang-data+json" \
"Cache-Control: no-cache" \
'{"example:interface":\[{"name":"eth3","status":"waking up"}\]}'
+
+new "rfc8040 B.3.9. RESTONF with-defaults parameter = trim xml"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth3?with-defaults=trim)" \
0 \
"HTTP/$HVER 200" \
@@ -548,13 +551,15 @@ expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPR
"Cache-Control: no-cache" \
'eth3waking up'
-new "rfc8040 B.3.9. RESTCONF with-defaults parameter = report-all-tagged"
+new "rfc8040 B.3.9. RESTCONF with-defaults parameter = report-all-tagged json"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+json' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth1?with-defaults=report-all-tagged)" \
0 \
"HTTP/$HVER 200" \
"Content-Type: application/yang-data+json" \
"Cache-Control: no-cache" \
'{"example:interface":\[{"name":"eth1","mtu":1500,"status":"ok"}\]}'
+
+new "rfc8040 B.3.9. RESTCONF with-defaults parameter = report-all-tagged xml"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPROTO://localhost/restconf/data/example:interfaces/interface=eth1?with-defaults=report-all-tagged)" \
0 \
"HTTP/$HVER 200" \
@@ -565,24 +570,24 @@ expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPR
# CLI tests
mode=explicit
new "cli with-default config $mode"
-expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth1eth29000eth31500$"
+expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth1eth29000eth31500edv$"
new "cli with-default state $mode"
-expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh1oketh29000not feeling so goodeth31500waking up$"
+expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh1oketh29000not feeling so goodeth31500waking upedv$"
mode=report-all
new "cli with-default config $mode"
-expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth11500eth29000eth31500$"
+expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth11500eth29000eth31500edvdv$"
new "cli with-default state $mode"
-expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking up$"
+expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking upedvdv$"
mode=report-all-tagged
new "cli with-default config $mode"
-expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth11500eth29000eth31500$"
+expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth11500eth29000eth31500edvdv$"
new "cli with-default state $mode"
-expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking up$"
+expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking upedvdv$"
mode=trim
new "cli with-default config $mode"
@@ -593,17 +598,17 @@ expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192eth11500eth29000eth31500$"
+expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth11500eth29000eth31500edvdv$"
new "cli with-default state $mode"
-expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking up$"
+expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192oketh11500oketh29000not feeling so goodeth31500waking upedvdv$"
mode=report-all-tagged-strip
new "cli with-default config $mode"
-expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth1eth29000eth3$"
+expectpart "$($clixon_cli -1 -f $cfg show config xml default $mode)" 0 "^eth08192eth1eth29000eth3$"
new "cli with-default state $mode"
-expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192eth1eth29000not feeling so goodeth3waking up$"
+expectpart "$($clixon_cli -1 -f $cfg show state xml default $mode)" 0 "^eth08192eth1eth29000not feeling so goodeth3waking up$"
mode=negative-test
new "cli with-default config $mode"