i got myself a little led tester from maplins, it had small flyleads that you can use to supply power to an led sitting on the bench, so you can test them before.
also you should see that there is a difference in the size of the anode/cathode in the lens area, so once you test one, note the difference and then it will be clear.