Refactored some support methods up to a new abstract base class BasicWorkerTest