There aren't any biological tests for racism that I know of.
What got the guys fired were remarks they made that 'sounded racist'.
If I said to you that you 'sound German', it's likely that I'm inferring that I think you're a German.
If I say to you that you 'sound racist', it's likely that I'm inferring that I think you're a racist.