add separate spec for tree and node