Add PersistentState test.
Merge pull request #111 from EasonLiao/persis_test

Add unit test for PersistentState class.