Tests for the Worker class