The court shall order the convicted person to pay the cost of the testing. The cost shall be treated as any other court cost or fine under chapter 23A-27 . If the person tested is an inmate under the jurisdiction of the Department of Corrections, the cost of testing shall be taken from the person's inmate account pursuant to §