Upon the conviction of any person for violation of section or or of driving a motor vehicle while under the influence of alcoholic liquor or of any drug in violation of any city or village ordinance, there shall be assessed as part of the court costs the fee charged by any physician or any agency administering tests pursuant to a permit issued in accordance with section , for the test administered and the analysis thereof under the provisions of sections and , if such test was actually made.