Sometimes i get a homework assignment during a job interview, so here is my log of these homework assignments.
I think it is morally wrong to ask job candidates to do unpaid work and then to tell them that 'we have decided to not move forward with you for this role' for some HR related reason, or something like this.
However that's just my opinion.