angularjs - test e mock