Elon Musk plans to testify in a Jan. 17 jury trial in which Tesla shareholders allege his 2018 statements on Twitter about going private were fraudulent.