Added internal counter to kokiri class, to keep track of all test run
counts in the class.
Also added functions to save and load state to permanent storage.