Improved test case for HTTPCookie expiry functions

Contributing a better(less brittle) test case as described in comments on my previous pull request #223.