Homeland Security officials this year will test the extent to which software can verify the authenticity of an ID based off just a smartphone photo and then correctly match an individual in a “selfie” to the photo ID.