Added a unit test for setting a cookie with expires_days

Hi.

I added a unit test for setting a cookie with expires_days.

Thanks.
timedeltas can be negative, and any negative value would pass this check.  Small negative values may be possible due to NTP adjustments, so just check that the difference is `> datetime.timedelta(seconds=10)`.  (or use timedelta_to_seconds and math.abs).