Improved robustness of some process related tests.