Making tests compatible with node v0.6