Added test for preserving cookies between requests.
Added cookie preservation.