Here are some instructions to test that if you wish. They are for Seagate but I believe work on any hard drive.
Go to Sea Tools for Dos tutoria for tutorial instructions.
Click on Seatools to download the tool.
Save the download to your desktop.
In Windows 7 right click the ISO file, select Open With, then select Windows Disc Image Burning Tool then follow the prompts.
For all other versions of windows (if you do not have an ISO burner) download this free software. ImgBurn Install the program and start the application. Select the top left hand option to Write image file to disc and then on the next window click on the small yellow folder icon and browse to the ISO file on your desktop. Then click on the two grey discs with the arrow in between (bottom left) and leave it to complete the operation.
You will need a blank recordable CD or a re-recordable CD. You cannot use this software on a USB flash drive.
When the CD has been burned boot the PC into the Bios setup and set the CD/DVD drive to 1st in the boot sequence Bios Boot Order Guide. Insert the disk in the drive then reboot and the disc will load into DOS. Click on Basic Tests and select the Long Test.
A full set of instructions can be found here: Seatools instructions
When the test completes it will show a Pass or Fail.