This makes the tests much less brittle, by not depending on the exact order of the HTTP headers, nor always requiring to check for every single header.