[tests] Some fixes for HistoryItemTest