subtree test js