Bug 1024920 - added a middleware for reporting needs

Not sure to understand: do you want 1/ to copy-paste the same test, and add the specific middleware test, or do you want to 2/ move the whole test ?

If 1/ it sounds like a duplication, if 2/ it's at 95% a test that seems to belong to 'functional_test'

I would also argue that currently, most tests here should belong to index_test.js or other models.

iow 'functional_tests' seems to be a generic pot-pourri module :)