refactored project controller tests to remove duplication