There are a whole load of symptoms of disjointed thought that any trained psychiatrist can usually pick up. Nothing like a mathematics test.
Usually I don't think it's particularly hard to know when someone is outright insane. They tend to develop delusions, irrational paranoia. Word salad is a particularly disturbing example of insanity.