Add generateTestCrash method
Fix typo