Test cookie setting.