How do coinstar machines detect counterfeit coins?

I know they use weights and magnets but what else do they use to accurately detect a fake coin