improve the crashTest script