(a) When the Division has jurisdiction of actions or proceedings under section 11-1101, the court, on its own motion, may require, or, on the motion of a party, shall require, the child and all other parties to submit to medical or genetic tests, unless:
(1) A party has established or is awaiting determination of a claim of good cause for failure to cooperate with paternity establishment pursuant to section 4-217.09;
(2) A legal finding of paternity has been made by a court or administrative entity of competent jurisdiction and has not been overturned on appeal, unless a party has made a showing pursuant to Superior Court Domestic Relations Rule 60(b) or section 16-909(c-1) (or the applicable rule of another jurisdiction, if the finding was made in another state) that supports setting aside the judgment, and genetic or medical testing would aid in resolving whether the judgment should be set aside;
(3) The parties have signed a voluntary acknowledgment of paternity pursuant to section 16-909.01(a) or the law and procedures of another state, after December 23, 1997, and have not made a legally-effective rescission of the acknowledgment;
(4) The child was conceived through artificial insemination and the donor is not a parent pursuant to § 16-909(e)(2); or
(a-1)(1) When a child does not have a presumed parent under § 16-909(a)(1) through (4) or § 16-909(a-1)(2), the IV-D agency shall require the child and all other parties to submit to medical or genetic tests, subject to exemptions for good cause pursuant to section 4-217.09, if:
(A) A party submits a sworn statement alleging paternity and setting forth facts establishing a reasonable possibility of the requisite sexual contact between the parties; or
(B) A party contests an original test result and seeks additional testing, upon request and advance payment by the contestant.
(2) In all other cases in which a child does not have a presumed parent under § 16-909(a)(1) through (4) or § 16-909(a-1)(2), the IV-D agency may require the child and all other parties to submit to medical or genetic tests when paternity is contested, subject to exemptions for good cause pursuant to section 4-217.09.
(b)(1) Tests shall be performed by persons qualified as examiners of genetic markers present in the human body.
(2) The examiners may be appointed by the court, the IV-D agency, or chosen by consent of the parties.
(c)(1) Except as provided pursuant to subsection (a-1)(1)(B) of this section, the costs of any medical or genetic tests ordered by the IV-D agency shall be paid by the IV-D agency, subject to recoupment from the putative father if paternity is established. The costs of any medical or genetic tests not ordered by the IV-D agency, and the costs of any expert witness appointed by the court shall be paid by the parties.
(2) Where the District of Columbia is a party, the court may order that the District of Columbia pay the costs upon a finding that the alleged parent does not have sufficient resources to pay the costs.