2. Costs Included in Sentence. If a person is convicted and the court imposes a fine, the court:
B. May sentence the defendant to pay, as restitution, the costs of drug tests, other than tests under Title 29-A, administered to the defendant by a law enforcement officer or medical personnel at the request of a law enforcement officer. The court shall transfer all amounts paid by a defendant under this paragraph to the municipal, county or state agency that incurred the costs; and
County agency; State agency.