Added test for setCookie