add test for textnode->element and element->textnode