To oversimplify things massively, "how careful do we want to be to avoid testing failures" is a parameter that SpaceX management gets to control. At the extreme careful end everything costs billions of dollars because you're paralyzed analyzing things and double/triple/quadruple/quintuple checking things. At the not at all careful end of things you keep building "complete rockets", pointing them at mars without any testing, and blowing them up. Obviously neither is rational.
They've settled on some parameters that are basically "don't worry that much about test failures, but keep the failures really cheap". They seem to be doing pretty well by doing that. They're experimenting with manufacturing techniques, hiring and training a workforce, building facilities. The prototypes that they are building keep failing, but that looks to be a relatively minor cost considering that the current primary goal is (according to them) to build out the manufacturing processes and make the design easy to manufacture.
Being slightly more careful would undoubtedly reduce the numbers of prototype failures, but would it actually be worth the cost of slowing other things down? Remember that the main cost of this program to SpaceX is engineering salaries, the faster it goes the cheaper it is.
So of course this test didn't go as planned, of course it would be better if it had worked, but would it have really been worth it to management to reduce the probability of this test failing? Like I said, maybe they aren't being careful enough, but I don't think we have any real evidence for that right now and I personally doubt it.