added tests for viewing project when role exists and when not, and added can_view? method