Unit tests for teams controller

...more angular unit tests.