fix cookie parser test and getCookies