Added a unit test for setting a cookie with max_age

Hi.

I added a unit test for setting a cookie with max_age.

Thanks.