Assert that the exception in thrown like in #257