I understand what you are saying. I can see using a coding test as a signal but it would probably be foolish to use it as a filter.
There are lots of critical skills and qualities for which there are no simple tests. For example, an excellent mentor could level up all those around them and provide far more value than a great programmer with weak interpersonal skills. In the end, it's a gamble.