move the voting cookie class
remove some unused code
fix the tests