A400M completes critical flight-test phase