add hasSessionCookie
add a test for customCurlOptions