He failed the Voight-Kampff test.
Something quite like that. (Convincing someone they are crazy is gaslighting, but convincing them they are an android is a (Philip K.) Dick move...)