Delta Airlines fails risk assessment test, loses $40M