Added several test functions for crashing the app in various different ways.