Tesla beat analyst expectations in its fourth-quarter earnings report Wednesday, as the electric vehicle giant led by the nation's wealthiest man Elon Musk grapples with a dim macroeconomic outlook and growing investor frustration toward Musk’s behavior.