Elizabeth Holmes, flushed and holding back tears, testified Monday that she left Stanford to launch Theranos in part because she had been raped, and said she later entered into what she alleged was an abusive relationship with the person who would become her startup’s chief operating officer.