Under the program, visitors from eight African nations, including those connecting through Europe, who arrive at New York’s John F. Kennedy International, Newark’s Liberty International, San Francisco International and Atlanta’s Hartsfield-Jackson International airports, will be given the option of taking a test when they arrive. Those who volunteer also will be given the option of an at-home test to take three to five days after arrival.