The test ROM performs the following tests:-
1 - programme RAM (7P & 7N) - flashes "testing RAM don't worry" otherwise it looks like nothing is happening. If it fails it displays the address it failed at, and stops further tests
2 - object RAM (4F & 5F) - if it fails it says "ORAM stuffed"
3 - video RAM (3F & 3H) - if it fails it says "VRAM stuffed"
4 - sprites - you can't read the sprite RAM so it drops sprites down the screen until all 7.5 are showing. If you don't see 1-7.5 full colour sprites moving smoothly you have an issue there
5 - DIPs and inputs - displays the status of DIP switches and inputs in real time
4 & 5 depend on which version of test ROM you have, they've only recently been added
Note just because the test ROM says certain RAM is faulty, it doesn't necessarily mean the RAM chips themselves are faulty but could be (and usually is) the supporting circuit