fix minor bug & update tests

- Fixed a bug that prevent the next worker to be called if the completed one have a kill function
- Fixed an error in the test