Refactored tests to mock dependencies and to contain better structure. Added team generator.