fragment and unit tests for ParentNode