fix test, set cookie