Bug 1024920 - added a middleware for reporting needs

functional tests tests the features proposed by the API endpoints.

This is a middleware, so we should be testing that the middleware is acting properly and then check that the middleware is indeed installed well for the routes we want.

I don't understand why testing the middleware belongs to functional tests, especially because we test something that should be tested already in the middleware tests.