added test cases for #939

added two test-cases to test-cookies.js
using cookie jars created directly with tough-cookie