fix broken ut at node v0.6 and v0.8