Test for cookie parameters.

I wasn't sure if setting some parameters on cookies was working or not, so I wrote a unit test for it.

The test passes; turns out I was just using it wrong in my other module.