tests for teams page. refactoring, pep8 fixes
fix in exception message
Merge pull request #45 from sashakruglov/issue_40

tests for teams page. refactoring, pep8 fixes