Fixing invitation tests