I see a lot of similar assertions in this test. Maybe creating a protected `assertElementText(NodeElement $element)` method to do that would result in more readable test.