Fixing inconsistent test dealing with cookie expiration timestamps. Addresses #474