Why Capacitors go bad

I bought some off the internet and they had no marking on them. But I just looked at some more I bought and they have the - on them. So I'm good on that question but have another one. What's the best way to test them? Thanks.