Adds the history test and tidies everything up so that we can run
a whole report from start to finish.