Add test of cookie implementation