refactored postPersistCallbacks; updated tests & docs