Fixed the tests for node 0.8

Trivial stuff.

There's also a test script in the package.json for convenient test running