Fix tests for 'expires' field in cookie headers

The date format emitted by the stdlib's Cookie module was fixed in a 2.7 point
release. We were testing for the old, incorrect variant, which caused tests to
fail on 2.7.9. The tests now accept both variants.