This isn't true at all. IQ isn't some magical catch-all measure of a person's intellectual ability, but it's not entirely total quackery either.
I suspect that academic success would be very strongly correlated with having a supportive home life, but IQ not so much. Maybe the gifted kids you refer to were the academically successful ones and not the high-IQ ones?
You won't find any of those things in any reputable IQ test. I'd be surprised if you found them even in a bullshit online test.
Maybe you just had a particularly bad experience and it has given you a false impression of what an IQ test is.