angularjs: fixed resource tests