Tech Testimony came after Mr. Musk said he expected to find a new person to run social-media company Twitter