added a test: test_getRootElement().
fixed the bug of FormulaElement::getRootElement().