The confession of a defendant made under inducement, with all the circumstances, may be given as evidence against him or her, except when made under the influence of fear produced by threats; but a confession made under inducement is not sufficient to warrant a conviction without corroborating testimony.