Test Worker.terminate() for a worker that tries to run forever.