lib: fix bug in HTTPCookieProcessor, test: add cookie processor test