fixed tests to work with node 0.10.0
Merge pull request #115 from sportngin/node10

Fixed tests to work with node 0.10.0