Completed test for InvitationManager