In the future every single car accident will be investigated, like it is done with airplanes, that is the advantage of autonomous cars, they log everything before the accident.
That is what made airplanes so safe that the last accidents have been basically suicidal pilots:
You investigate what creates accidents, you learn and take actions so accidents do not happen again. Rinse and repeat.
Lots of the "bugs" they are going to find are not in the cars, but in the roads, like perpendicular road crossings (too common in the US), instead of roundabouts, or concrete medians with sudden changes and no visual clues.