When such attachment is levied on property embraced in a declaration of claim of exemption which has been filed for record, or subsequent to the levy a claim to such property as exempt is interposed, if, on the trial, the averment of waiver is not sustained, the levy shall be discharged and the property returned to the defendant, unless the plaintiff, within five days after judgment, shall contest the claim. If such plaintiff should desire to contest, such contest may be instituted and prosecuted as in other cases.