tested the DOM manipulation