Adds a unit test to serialize and decrypt cookies with string expires.

This test complements the pull request #571 (related to issue #568).