If the grounds on which a search warrant was issued be controverted, the judge or the magistrate must proceed to hear the testimony, which must be reduced to writing and authenticated in the manner prescribed in Section 15-5-4.
Ala. Code § 15-5-15 (1975)