TST: Test that the warning registry is empty after assert_warns