Apple gives you a hardware test program on Install Disc 1 (you got the discs, right?). Insert the disc into the optical drive and restart the machine. Right after you hear the chimes, press and hold the D key until the machine boots to the hardware test.