Fixes test failing issue with node v0.8.