Adding some tests around throwing / catching errors