Ideological tests wouldn't work, as the open borders promoters are usually socialists and their test would be something like "Do you think we should let all poor people move here and get free stuff, so we can be nice and friends?" That wouldn't limit the number of welfare recipients, because that's the target group.