Instead of changing all prior `post` tests to `put`, could you just configure the middleware in this test to simply do redirect for POST as well? As a general rule, I recommend avoiding changing existing tests when adding new functionality.