Fix abstractNode initialization signature and tests.
An abstractNode with document context has a nil parent.