Add assertErrorsWith functions.