Fixed unit tests for DAO.