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.