updated unit test for change in handle_file_upload scope