Add a bunch of tests and checks for cookie domain security.