documented and tested the find behavior of the dom method