modified test to set correct cookie