Fixes bug 806994 - Added functional tests where missing in the middleware.
Merge pull request #1045 from AdrianGaudebert/806994-functional-tests-middleware

Fixes bug 806994 - Added functional tests where missing in the middleware.