UIImagePickerController support and unit tests