Test: add cookies via JavaScript.

Lately I have been looking into small behavioural
differences between the different browsers.
I have been asked to look into this and it turns
out the behaviour is the same across FF, Chrome
and PhantomJS.

I'll add the test anyway, because the work to
write it has been done anyway.