Implement cookieProvider and apply it to testGetAndSetCookie
Make _headers & _cookies array() by default