Cleanup some replication tests.

Fix CookieStore on windows.
Deals with disposed HttpRequests on Windows.