PC Mark runs through a whole bunch of different features so does a good job of testing. I can't really say that it does a formal test of it, but if you run it you should detect any issues.
Prime95 will run your CPU up to 100% load, and will also use the RAM a lot depending on how you run it, so will test both of them.