Wrote tests for the history