Fixed a bug in testrunner.