Fix unit-tests for View and UploadFile classes