Add tests for creating and hashing worker instances.