added exit status to runtests