Wrap assert_raises tests in try block
(#569)