Fix tests for node 0.11
Merge pull request #218 from geek/master

Fix tests for node 0.11