Fix test under node 0.10. For #1590