I have been outright refusing to do take-home tests and coding challenges. I do not care if it means fewer opportunities. They are not worth the stress. In a few cases the employer waived them, sometimes they tried to cajole me into doing it, a few other times there was hand-waving and excuses on their side.