diff --git a/test/test_autocli_editmode.sh b/test/test_autocli_editmode.sh
index 7a0ba33b..2b526033 100755
--- a/test/test_autocli_editmode.sh
+++ b/test/test_autocli_editmode.sh
@@ -128,21 +128,21 @@ wait_backend
# First go down in structure and show config
new "show top tree"
-expectpart "$(echo "show config xml" | $clixon_cli -f $cfg 2>&1)" 0 '
$'
+expectpart "$(echo "show config xml" | $clixon_cli -f $cfg 2>&1)" 0 ''
cat < $fin
up
show config xml
EOF
new "up show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
cat < $fin
edit table
show config xml
EOF
new "edit table; show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "/clixon-example:table>" "a42$" --not-- ''
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "/clixon-example:table>" "a42" --not-- ''
cat < $fin
edit table parameter a
@@ -186,7 +186,7 @@ top
show config xml
EOF
new "edit table parameter a value 42; top; show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
cat < $fin
edit table parameter a
@@ -194,7 +194,7 @@ top
show config xml
EOF
new "edit table parameter a; top; show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
# edit -> up
@@ -204,7 +204,7 @@ up
show config xml
EOF
new "edit table; up; show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
if $LEAFMODE; then
cat < $fin
@@ -223,7 +223,7 @@ up
show config xml
EOF
new "edit table parameter a; up up; show"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
cat < $fin
edit table parameter a
@@ -275,7 +275,7 @@ up
show config xml
EOF
new "delete parameter b"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 '$'
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 ''
# Back to startup
# show state
@@ -285,7 +285,7 @@ edit table
show state
EOF
new "show state"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "a4299$"
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "a4299"
# Show other formats
cat < $fin
@@ -314,7 +314,7 @@ edit table
show config netconf
EOF
new "show config netconf"
-expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "a42]]>]]>"
+expectpart "$(cat $fin | $clixon_cli -f $cfg 2>&1)" 0 "a42" "]]>]]>"
# Negative test
new "config parameter only expect fail"