Added history store function. Added extra test to load function tests.