When anyone denies his own writing on account of which suit was brought against him, as well as that the money was counted out to him, and loses his case, judgment shall be rendered against him for double damages, unless, the oath having been tendered him, he confesses judgment; for then he will not be punished, except by being compelled to pay the expenses incurred by the amount of proof which sh