Changed upload test to reset the file nicely