clean up duplicated test methods

--HG--
extra : transplant_source : 7%08%A1%E2%24u%BE%09%3D%CD%89P%D5h%D9%E8%E4%21%F9W
init superclass in ElementTreeContentHandler
clean up some test code