TST: Factor out the running events through a test performance tracker.

Based on @fawce's work for changing the simulate loop.