Court filings: Tesla has settled two lawsuits over