Added rest of the state unit tests
Added one test to worker