implements tests for teams api and related methods that are under tests