I've done those before, and found the employer always underestimates how much time they should take. I think it's a good idea, but I've done 3 where the employer said "this should take 2-3 hours", but I actually had to spend an entire weekend on it instead. Felt like a waste of time, especially for the ones I didn't even make it to next phase in.