Move the filterProjects function onto $scope, to make it available for
testing
Add unit tests for the /copy and /portfolio controller