Add the History model and tests