Well, it’s not such a big problem as it is in, say, health care.
It’s in the train co’s interest to have working toilets (not too many, because they displace seats but some) and have them reliable and easy to maintain (else costs go up, maybe even they need more per train). This is why they care about a denial of service attack (btw an electronic one can tell the conductor when the toilet is locked for a grossly atypical duration).
So to that degree the interest of the carrier and the passenger are aligned. This applies to most of the carriage decisions (robust seating, working doors and brakes, and so on).
But the if the trains pass first inspection, then it no longer is a development issue but a maintenance issue. [1]
It's not as if train companies can afford to run a statistically significant number of carriages from different suppliers to see which one gives them the actual best bang for buck 5 years down the road.
The short version: high speed trains failed and were eventually returned (2014) to the manufacturer for ~2/3rds of new price. (That's the exception part.)
There have not been high speed trains on this traject since. (That's the rule-conforming part.)
It’s in the train co’s interest to have working toilets (not too many, because they displace seats but some) and have them reliable and easy to maintain (else costs go up, maybe even they need more per train). This is why they care about a denial of service attack (btw an electronic one can tell the conductor when the toilet is locked for a grossly atypical duration).
So to that degree the interest of the carrier and the passenger are aligned. This applies to most of the carriage decisions (robust seating, working doors and brakes, and so on).