Fixes bug 824849 - Fixed and improved middleware testing.
Merge pull request #18 from AdrianGaudebert/bug824061-socorro-integration-test

Fixes bug 824849 - Fixed and improved middleware testing.