but the IQ test still isn't racially biased. You are just pointing out that there are multiple influences on IQ and multiple mitigations to mitigate the environmental factors.
The gifted program selection process making use of the test is racially biased, and there is limited (though some) ability to mitigate that while still using the test. Whether the test is racially biased in some abstract sense detached from the context of use is irrelevant.