Testing Angular.js $scope Refresh