The IQ tests measures how good someone is at taking IQ tests.
Entirely right.
However, there is a high degree of correlation between this skill and actual intelligence.