Fixes inclusion check for viewing teams page
Added tests for team routes
Merge pull request #786 from Tonkpils/fix-team-check

Fixes inclusion check for viewing teams page