A Chinese man testified in a Canadian court for the first time after witnessing via webcam his former girlfriend being attacked, raped and murdered in her Toronto apartment nearly a year ago.