Tesla races to turn a profit amid questions about its ability to deliver cars