Unittest - Workaround race condition when killing slow processes

* In some cases the process finishes normally very close to the timeout
Unittest - Testcase for TW-1438