test(unit/simple-file-uploads.js): #1063 refactor to eliminate some code dupes