Testing controller that does not use $scope