Improving the worker test case.

@enisoc 

Will work on other unit test cases for the other workers eventually, and also negative test cases. But this is a good foundation.