Subject to the provisions of this chapter:
Paternity of the child under this paragraph shall be established through voluntary acknowledgment of paternity or blood, genetic or other type of paternity test acceptable to the court. The cost of the testing shall be borne by the parent who was convicted of the offense.
23 Pa.C.S. § 4321