adding unit test for worker cancellation