Tesla beats on revenue in the first quarter