One time I interviewed somewhere. It wasn't a perfect job, but I would have taken it if the offer was good. After the interview they called and wanted me to take some kind of test. I said no. They called me at least two more times to see if I wouldn't reconsider. That made me think wow, they must really like me from the interview. Why not just make me an offer? But no, they didn't call back after I firmly denied them. Maybe they learned a lesson, maybe not. Not my problem.
And that's the final lesson. If a place has this kind of hiring process, that is already a red flag that this is not a good place to work. Even if you took the test and they made you an offer, it would not be a good time working there.