Added methods for shutdown and termination state check
Added hash worker pool size check
Extracted pool size decision to own method
Hash worker tests redone