Counterfeit chip detection