I've done take home tasks before. One of them I had to do landed me a job at a really great company that I'm happy I didn't miss.
I agree it's maybe a little less respectful of a candidate's time, but as long as it's not too big a task I don't think it's unreasonable either.