Add tests for setCookieFile() and setCookieJar() methods