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.