TreeNodes can't be inner classes.
Merge pull request #1 from marmbrus/pr/1074

Fix testcase