No person who testifies for the state in any prosecution for any unlawful exhibition or erection or construction therefor or forfeiture accruing therefrom shall thereafter be prosecuted for anything about which he has so testified.