All MacBook Pros support hardware test. http://support.apple.com/en-us/HT201257
You may need your grey OS install disk if the Apple Hardware Test is not on your hard disk.
If you don't have that you still can try Memtest86 to test the RAM. RAM can cause all kinds of weird random problems. http://www.memtest86.com/