bug fixing in invite tests