test/lib/dom/node: minor fix
small refactoring
test/lib/dom/element