reimplemented TestRun as a Context Manager