added rte and assets service mocks
replace $element with $scope.$on($destroy)

We should never access dom element from controllers