add unit test for deployment worker