update tests: register -> registerElement; entered/left -> attached/detached.