Fixes inclusion check for viewing teams page
Added tests for team routes