Fix syntax errors in tree's tests