Added test for text element.