fix test case when node < v0.10.0