tests(queue, worker): add unit tests