Refactored tests and new_crashes() r=twobraids,peterbe