I waffle back and forth on this myself. I have done some "take homes" and whiteboard tests and I have also told some recruiters that I would not. What I will say is that I don't recall ever doing a task or test that was actually directly related to the job description.