persistence service and tests