Added test for root_element case.