Fixed output code in runtests.sh