Add tests for the contact photo loading code paths.