add worker deployment test and support for multithreaded