There are lots of necessary tasks entailed in a job, and I could test someone on one of those tasks (if it were suitable in an interview context). But there are other things I could ask someone and their performance on that task would be sufficient to hire them. The retort that only necessary skills should be interviewed against isn't a great argument.