Remove use of assert_ex