fixes bug 824061 - socorro integration test
Fixes bug 824849 - Fixed and improved middleware testing.