Inside a Will County courtroom Wednesday, the ex-wife of a man accused of murder testified for the prosecution.