Improve test for run_worker