bug fix maxDuration arg to runTest