fixed sloppy errors in testing w.r.t not returning x_corrupted anymore