Not so long ago I had an interview with a company that also required the completion of a technical test task. So it took (and this is only an approximate time) more than 2 weeks of painstaking work. In the end, they refused me because they found that I had duplicated interfaces in several places and in the graphical part of the apk I had made a view form for myself not as recommended by the MS.
Seriously!??? The technical task is to develop a library, without ui but with all unit tests. That is, the refusal is formal. I took on the test only to not lose skills and to supplement my portfolio.
So, summary: never do a test assignment if the company doesn’t agree to life coding. Or better yet, don’t do a test assignment at all unless you want to add something to your development portfolio, because most often these are companies that throw you away.