angularjs: fixed another error in resource tests