Airbus tests pilot assist that can automatically divert flights