One that comes to mind for the GPU would be FurMark. Not really a test program, but a stress program. And if there are any problems with the GPU, that program will find it. Most likely in the form of a driver crash or an occasional BSOD.
This is how I diagnosed a bad VRM on an old card.