In early foreign policy tests, Biden takes on world as it is