test res.cookies
handle non array set-cookie responses