Fix test to use cookie.