Regardless of the content, a test filters for people willing to put in the work to pass. All else being equal, given two candidates, where one has passed a test and another one who didn't bother, the first one sends a stronger signal to the potential employer.
It's still worth discussing if the particular test is ideal, but the answer IMO is not to say let's remove tests in general.
Right on. Instead of complaining about the test, he did what was necessary to ace it.
He's the kind of person I'd want to hire.