Fix NewCookie to throw correct exception, add tests

svn path=/trunk/; revision=491
2 files changed
tree: 817a8e3e76656db68d7be53cdeb202f55ff3f9bf
  1. spec/
  2. src/