adding ability to peer into cookies from TestHttpClient
fixing bug in #504 that was incorrectly parsing client's cookie