Added cookie constructor for Session and test cases