There's no other way then testing them in your bad times. True friends will be with you in that time n fake friends will leave or they'll watch you fighting alone
A true friend is someone loyal, trustworthy and honest. It's someone who has your back and is always there for you, no matter what. That's just my opinion, though. (: