Test persistence correctly saving/restoring