Tesla posted a wider than expected first-quarter loss but said that its mass market Model 3 remains on track.