changing tests according to name changes in the API
  Document.register -> Document.registerElement