Added an InviteHandlerTest
Fixed an issue with invites noe being removed when a team was disbanded