In this case the expected behaviour is clearly spelled out in the law.
> You're going to write a lot of code in blood this way.
Do note that in this case nobody died or got hurt. People observed that the autonomous vehicles did not follow the rules, the company got notified of this fact and they are working on a fix. No blood was spilled to achieve this result.
Also note that we spill much blood on our roads already. And we do that without much of any hope of learning from individual accidents. When George runs over John there is no way to turn that into a lesson for all drivers. There is no way to understand what went wrong in George’s head, and then there is no way to adjust all driver’s heads so that particular problem won’t happen again.