Improved ProjectsController unit test coverage

before_action branch cverage