Fix brittle tests that made assumptions about middleware name.
No need for global flag
Merge pull request #30 from krakenjs/fixtests

Fixtests