DRY up running tests

Moved duplication from `runFile` and `runTest` into `runTests`. Also
renamed `runTest` to `runSingle`.