Test for validity of <target/> element