Test for view.remove and view._removeElement