refactor(tests): change $(...) to angular.element(...)
refactor(tests): change $.extend to angular.copy