tests: multiple fixes to run-assert-msg-test.sh