The man accused of killing a teacher before her body was allegedly dumped in a bin has revealed plans to fight the charge, a court has been told.