Fix error raising StaleDigestException
Add stub headers to test the cookie handling and digest handling