Fix HistoryTest