Added has-task?, related tests, and more tests.