testrunner: fix a series of bugs that prevented me from running any test