Test for catch_err.