add tough-cookie2 dependencies, fix tests