Complete unit test for UserDAO.