added persistence directory with test interface that sync returns values