Fixed tests to work with node 0.10.0