NASA completes ‘planetary defense’ test