They’ve had two falcon 9 systems explode unintentionally. The CRS-7 system failed in flight, and AMOS-6 failed on the launch pad during fueling. They also unintentionally blew up a Crew Dragon capsule.
It is true that they do testing differently from Boeing. Boeing uses a NASA testing plan where hardware is verified on the ground through extensive part or subsystem-level testing. This method has a downside which is that many things end up needing a higher factor of safety than absolutely necessary due to uncertainty in the risk calculations.
SpaceX uses a different testing strategy where a lot more stuff is tested as a complete system. There is increased potential for full system failures, which we have seen, but the entire system can be vetted more quickly.