Add tests for Worker and TestWorker class. Closes #22