Fixed bug around cookie handling.
Added test case for response objects.