use proper exit code in runtests