fix isroot testcase for node 0.11

#935