It is likely that the Energy Saver software is making the drive spin-down during the testing, which causes the diagnostics to fail the drive. To avoid this, in the Energy Saver control panel, set the Sleep Setup option to "Never". This will prevent the software from spinning down the drive and allow the utility software to properly check the hard drive.