Adjust fork&exec test for more robustness