Test kaizen

Hey @ddossot 

Did some small changes to the integration tests to make them work with the middleware.

Tests are still failing (most of them right now because we are not giving out an Origin header on the request and the policy has `origin-required?` option set to true). I think we might be able to work out all this issues quickly.

Cheers.