Add test for the cookie behavior.