Make unit test safer

Make unit test safer by removing assumption that the test runner doesn't set cookies