Fix failing tests after pull up of getHistoryDao.