Add Team unit tests

Basic coverage. We need  to improve it once the error handling for setting up id and key is in place.