The reasoning behind the question...
One common argument for autonomous vehicles is that they are far, far safer in number of accidents per unit time per average person than having the person pilot the vehicle. Which, at first glance, feels like a good argument; if you can demonstrate that a given algorithm, under a variety of different conditions over a period of months, has fewer accidents than a normal human then it makes sense to use that algorithm instead.
However, the thing that gets completely glossed-over in that argument is the fact that there is a single point of failure in that entire system: effectively, all the cars are using the same driver. So, if the software is fine for a few months, everything's fine, but if the image recognition software performs very, very poorly on an overcast day and one day it's overcast, or if a software update is pushed out which contains a regression, suddenly millions of people all die in one day.
In other words, an AV won't necessarily improve statistics; it will simply change their distribution, because there's effectively one driver for all those cars. So, when that one driver has an off day, all the passengers have an off day.
This is effectively the same model the pharmaceutical industry has been dealing with for its entire history, and as a result some pretty solid testing guidelines exist to minimize risk; first the new drug / algorithm is tested for a while with a small group of volunteers in a double-blind fashion (such that everyone is told they're getting the new thing, when half of the group are not), then larger and larger groups are tested under more varied conditions to see whether uncommon but serious flaws emerge, and to determine whether the placebo is actually more helpful / less dangerous than the new treatment.
Is there similar legislation in place to regulate these AVs' navigational software?