Added unit test for passing along cookies.