Add PersistentState test.