The old file could be renamed to `tool_test_output_backup_${n}.json` or similar. Or more simply, a timestamp could be added to every file name.