Add tests for Worker initialization