changed $scope to scope in tests to make things clearer