add test of subelement deletion