Update tests that reference targetElement