Should I comment out the code for what I am not testing when loading the test firmware for Ramps 1.4?
There's no reason to comment anything out. It will work just fine without any modification, even if you're just testing a single motor. That said, I don't see the value of this "test firmware" over just installing Marlin.