Fix to ensure `for` actually names middleware.

Bug from previous refactor. Test changed to ensure it gets caught.
Merge pull request #4 from izaakschroeder/only-fix

Fix to ensure `for` actually names middleware.