Fix the upload modal unit tests