Added test cases to test pause and resume worker