Elon Musk has appeared in court to testify in a defamation lawsuit brought by a British cave diver who he called a “pedo guy” on Twitter.Giving evidence in Los Angeles, the Tesla founder insisted his slur was not meant to be taken literally and was only a “taunt” aimed at Vernon Unsworth during a war of words over his offer to help rescue a schoolboy football team from a flooded cave in Thailand.