Rewrote TestThread allow for a a specific amount of work to be performed once before thread dies. This will make it easier to emulate processes with different bursts