Add test for renaming files before upload