Restore mistakenly removed middleware in integration test.