Fixed tests to work with node 0.10.0

To test:

Install nave: `npm install -g nave`

Install latest stable node: `nave use stable`
You are now in a subshell that is using node 0.10.x

`npm test`