Sales were up at Tesla but so were costs and spending