test(spec): change $scope to use $rootScope directly