Tesla spars in court over AutoPilot alert 2 seconds before crash