update tests to use registerElement.