fix worker unit test