Define DOM manipulation functions as private static, extract node list buildup, simpler @covers annotation for the manipulation tests