Fix type hierarachy for HistoryContents (it is not a History, it does have a name though).
Extract test helper method for populating datasets in a history.