Fix multipl calls to startTestRun and stopTestRun
Add test