Add test for the upload dao.