There are a few different ways to test L.E.D.s for quality:
Visual inspection: This is the simplest way to check for any obvious defects in the L.E.D. Look for cracks, discoloration, or other damage to the L.E.D.'s housing.
Resistance test: Use a multimeter set to the resistance (ohms) setting...