Added tests and updated docs. Also adding 'user_id' field in the hooks for adding/removing user from team.