bug fixing for invite tests