changing tests according to name changes in the API
  Document.register -> Document.registerElement
  enteredView -> attached
  leftView -> detached