Gen. Petraeus to testify Friday in Libya attack hearing