added new method 'merge_cookies' and use it when merging session cookies with param cookies.
update 'merge_cookies'
modified 'merge_cookies' and update tests.
made sessions.py to use that method when merging cookies.