tests: update some tests to avoid infinite loops on --keep-going