TST: reset warning filter under catch_warnings