add spec about restoring with instance code