Migrate TreeNode tests and fix use of extension methods.
Migrate RequiresAndHierarchy tests and fix bugs.
Migrate ProjectTree but not tests yet.