Persistence testing

Added PersistenceService interface and PersistenceServiceTest