test_lib_worker: fixed bugs