produce error when using top-level variable declaration
added test: some node forgot to ParentNode
correct to set Node.Parent