test cases for UploadsController