Persistence implementation & test.