It's a fucking ridiculous ask for free work. If a role I was applying for asked for that I'd require a few in person interviews first and an agreed on contracting rate for my time - probably with an advance.
If your "test" takes more than two hours for a reasonable person it's just an effort to get free work.