Fix rollback and test errno