fix invitation tests