This article discusses software internally used by Apple.
Acquiring a copy without Apple's consent is illegal and may result in being scammed.
All tests are performed via a usbmux interface. During that time the iPhone displays a picture of a fireball. Partial output is displayed at the bottom.
However when display tests are run, different output is produced.
This iPod was seen on eBay