test script: fix not unsetting a variable and nicer output.