DEV: Move rate limiter disable to after :each for tests (PR #13986)

We weren’t calling clear_all! for the rate limiter which was the first problem, and the second problem was that it is very odd to do state cleanup before tests instead of after, so moved the disabling and clear_all! to after.