Added unit and int tests for Team. Refactored paging and user services