Fixtests

The static middleware function name exposed this issue, so new changes should be more robust to name changes.