fix tests on node v0.8
Merge pull request #296 from voodootikigod/fix-tests-node-8

fix tests on node v0.8+