code for bias testing