Add unit tests for changes SetCookie behavior