Fixed the uploader test deleting files in the wrong order