fixed test cases fail on node 0.11+