switched history storage to pstore
updated tests for pstore