test: add test for worker.terminate()
+ timeout fns
#25735
Closed
worker.terminate()
+ timeout fns
#25735