Fix invitation tests