Refactored the setCookie test with expiry over 2038