Should we say something like '$scope.loadingData = false' after this line? Also, in what type of scenarios does the authorization fail? Have we written tests for those?