add error logging to TestRunner.runtests