tests: Fix ignoring some exceptions