Fix assertion catching test.