update cookie stuff
tests for cookies