Ardupilot Simulation (SITL - Simulation In The Loop) allows for safe testing of experimental code and settings and crashing virtual vehicles is a lot cheaper than crashing real ones!
It was written for X11/Linux. Fortunately thanks to Vagrant and XQuartz it can be run on MacOS.