Fix race condition in tests
Tests were trying to write to the same output files, which sometimes causes corruptions and failures in the validators.
Tests were trying to write to the same output files, which sometimes causes corruptions and failures in the validators.