The adopting parent or parents and the adoptee must appear at and, if required, testify at the hearing under oath unless the court determines their presence is unnecessary. In addition, the court may require the appearance and testimony of all persons whose consents are required by this part and representatives of agencies or individuals who have acted as an intermediary if their appearance or testimony would be necessary or helpful to the court.
23 Pa.C.S. § 2723