Updating cookies unittests to pass under the Dart unittest test runner

I'm working on getting Angular tests running as part of Dart's standard test suite.