Apple now distributes app that tests various aspects of iPhone accessories. App is intended to help accessory developers to ensure that those accessories work properly with the iPhone and iPad.
App Store: Accessory Developer Assistant (unlisted)
Reference: Apple now distributing ‘Accessory Developer Assistant’ app through the App Store